package cn.yxm.recsys.online.service.impl;

import cn.yxm.recsys.online.dao.UserDao;
import cn.yxm.recsys.online.dto.UserDto;
import cn.yxm.recsys.online.entity.User;
import cn.yxm.recsys.online.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User getUser(Integer id) {
        return userDao.getUser(id);
    }

    @Override
    public List<User> getList(List<Integer> ids) {
        return userDao.getList(ids);
    }

    @Override
    public List<UserDto> getTopScoreUser(Integer movieId) {
        return userDao.getTopScoreUser(movieId);
    }


}
